<ion-view title="商品上架">
    <ion-nav-buttons side="right">
        <a class="button button-icon icon ion-home" href="#/app/boxs"></a>
    </ion-nav-buttons>
  <ion-content class="has-header" has-bouncing="true" overflow-scroll="false">

        <div class="row">
            <div class="col">
                <h5>商品类别：</h5>
            </div>
            <div class="col col-67">
                <div class="list">
                    <label class="item item-input">
                        <input type="text" ng-model="data.sort" placeholder="请输入类别">
                    </label>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col">
                <h5>商品名称：</h5>
            </div>
            <div class="col col-67">
                <div class="list">
                    <label class="item item-input">
                        <input type="text" ng-model="data.name" placeholder="请输入商品名称">
                    </label>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col">
                <h5>属性描述：</h5>
            </div>
            <div class="col col-67">
                <textarea  ng-model="data.attr" rows="10" style="background-color: #f6f6f6;padding: 5px" placeholder="请输入商品描述"></textarea>
            </div>
        </div>
        <div class="row">
            <div class="col">
                <h5>商品价格：</h5>
            </div>
            <div class="col col-67">
                <div class="list">
                    <label class="item item-input">
                        <input type="text" ng-model="data.price" placeholder="请输入商品价格(只包含数字)">
                    </label>
                </div>
            </div>
        </div>
      <div class="row">
          <div class="col">
              <h5>商品库存：</h5>
          </div>
          <div class="col col-67">
              <div class="list">
                  <label class="item item-input">
                      <input type="text" ng-model="data.num" placeholder="请输入商品库存(只包含数字)">
                  </label>
              </div>
          </div>
      </div>
        <div class="row">
            <div class="col">
                <h5>商品图片：</h5>
                (不超过3张图片)
            </div>
            <div class="col col-67">
                 <!--<img  id="myImage" style="width: 150px;height: 150px;border: 1px dashed #999997">-->
                <div ng-click="remove(0)" ng-show="imgshow.imgshow01" style="width: 70px;height: 70px;display: inline;position: relative">
                    <img id="image01"   style="width:70px;height:70px;">
                    <img src="img/cut.png" style="position: absolute;width: 30px;height: 30px;z-index: 999;bottom: 5px;right: 5px">
                </div>
                <div ng-click="remove(1)" ng-show="imgshow.imgshow02" style="width: 70px;height: 70px;display: inline;position: relative">
                    <img id="image02"   style="width:70px;height:70px;">
                    <img src="img/cut.png" style="position: absolute;width: 30px;height: 30px;z-index: 999;bottom: 5px;right: 5px">
                </div>
                <div ng-click="remove(2)" ng-show="imgshow.imgshow03" style="width: 70px;height: 70px;display: inline;position: relative">
                    <img id="image03"   style="width:70px;height:70px;">
                    <img src="img/cut.png" style="position: absolute;width: 30px;height: 30px;z-index: 999;bottom: 5px;right: 5px">
                </div>

                <img id="add" ng-show="imgshow.addimg" src="img/add.jpg" style="width:70px;heigth:70px;" ng-click="addAttachment()">

            </div>

        </div>
        <!--<div class="row">-->
            <!--<div class="col">-->

            <!--</div>-->
            <!--<div class="col col-67">-->
                <!--<button class="button button-block button-primary button-small" ng-click="addAttachment()"> 选择图片</button>-->
            <!--</div>-->
        <!--</div>-->
      <div style="text-align: center;">
          <div id="testId" ng-if="show" class="alert">
              <span style="padding: 10px;background-color: #000000;color: #ffffff">{{message}}</span>
          </div>
      </div>

  </ion-content>
    <ion-footer-bar>
        <div class="button-bar">
            <a class="button button-assertive" style="font-size:18px;font-weight:bold;" ng-click="submit()"><b>提交</b></a>
        </div>
    </ion-footer-bar>
</ion-view>
